-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Calculating Risk in VulnerableCode #1593
base: main
Are you sure you want to change the base?
Conversation
it would be really great to see a review of this PR soon! |
Set data_source as the header for the exploit table. Squash the migration files into a single file. Add test for exploit-db , metasploit Add a missing migration file Rename resources_and_notes to notes Fix Api test Refactor metasploit , exploitdb , kev improver Rename Kev tab to exploit tab Add support for exploitdb , metasploit, kev Signed-off-by: ziadhany <[email protected]> Signed-off-by: ziad hany <[email protected]>
Refactor the error handling logic in the code. Signed-off-by: ziadhany <[email protected]> Signed-off-by: ziad hany <[email protected]>
Add pipeline_id for ( kev, metasploit, exploit-db ) Signed-off-by: ziadhany <[email protected]> Signed-off-by: ziad hany <[email protected]>
Set data_source as the header for the exploit table. Squash the migration files into a single file. Add test for exploit-db , metasploit Add a missing migration file Rename resources_and_notes to notes Fix Api test Refactor metasploit , exploitdb , kev improver Rename Kev tab to exploit tab Add support for exploitdb , metasploit, kev Signed-off-by: ziadhany <[email protected]> Signed-off-by: ziad hany <[email protected]>
Refactor the error handling logic in the code. Signed-off-by: ziadhany <[email protected]> Signed-off-by: ziad hany <[email protected]>
Signed-off-by: ziadhany <[email protected]> Signed-off-by: ziad hany <[email protected]>
Signed-off-by: ziadhany <[email protected]> Signed-off-by: ziad hany <[email protected]>
Signed-off-by: ziadhany <[email protected]> Signed-off-by: ziad hany <[email protected]>
Signed-off-by: ziadhany <[email protected]> Signed-off-by: ziad hany <[email protected]>
Signed-off-by: ziadhany <[email protected]> Signed-off-by: ziad hany <[email protected]>
Signed-off-by: ziadhany <[email protected]> Signed-off-by: ziad hany <[email protected]>
uncomment all importers Signed-off-by: ziad hany <[email protected]>
@ziadhany this generally looks good to me, can we have some logs for the pipeline and some UI and API screenshots so we can merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ziadhany, some nits for your consideration.
Also, please use LoopProgress
while iterating over large records, as we do here
progress = LoopProgress(total_iterations=fetched_exploit_count, logger=self.log) |
…skPackagePipeline to ComputePackageRiskPipeline. Add a tooltip for risk, and remove any unused imports in the view. Signed-off-by: ziad hany <[email protected]>
…ore and remove any extra whitespace in views.py. Signed-off-by: ziad hany <[email protected]>
Signed-off-by: ziad hany <[email protected]>
@TG1999 @keshav-space
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ziadhany, see some suggestion.
Also, please rename the pipeline file from risk_package.py
to compute_package_risk.py
and the corresponding test file to test_compute_package_risk.py
.
Add pagination and refactor bulk_update_package Signed-off-by: ziad hany <[email protected]>
@tdruez @keshav-space, I've completed the requested changes and I hope we can move forward and merge this PR. Additionally, please review the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that @keshav-space is going to create a list of sources to expand the entries in weight-config.json and we'll take it from there. Please put suggested weights in the file. We probably also need a default. |
issue: #1543